<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>conf_general.h File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../vesc.jpg"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li><a href="../../annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
      <li><a href="../../globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">conf_general.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="../../dc/d51/datatypes_8h_source.html">datatypes.h</a>&quot;</code><br />
</div>
<p><a href="../../df/df4/conf__general_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a5a209f781c62e738bb2f3868604fbe77"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a5a209f781c62e738bb2f3868604fbe77">FW_VERSION_MAJOR</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a5a209f781c62e738bb2f3868604fbe77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae224d2fae5df95eef5b8b1638b714731"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#ae224d2fae5df95eef5b8b1638b714731">FW_VERSION_MINOR</a>&#160;&#160;&#160;12</td></tr>
<tr class="separator:ae224d2fae5df95eef5b8b1638b714731"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8a66de8480015449b71c7e2a184245d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#af8a66de8480015449b71c7e2a184245d">AUTO_PRINT_FAULTS</a>&#160;&#160;&#160;0</td></tr>
<tr class="separator:af8a66de8480015449b71c7e2a184245d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a203e46be358e8b2504b821df08d80c76"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a203e46be358e8b2504b821df08d80c76">SYSTEM_CORE_CLOCK</a>&#160;&#160;&#160;168000000</td></tr>
<tr class="separator:a203e46be358e8b2504b821df08d80c76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb5b082214e46b36710f13fb58f14536"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#afb5b082214e46b36710f13fb58f14536">HW_VERSION_46</a></td></tr>
<tr class="separator:afb5b082214e46b36710f13fb58f14536"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b1e984078682e6796a6f01798bcff77"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a9b1e984078682e6796a6f01798bcff77">MCCONF_OUTRUNNER2</a></td></tr>
<tr class="separator:a9b1e984078682e6796a6f01798bcff77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42c15799695a95f5cf1a7ad50390405e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a42c15799695a95f5cf1a7ad50390405e">ENCODER_ENABLE</a>&#160;&#160;&#160;0</td></tr>
<tr class="separator:a42c15799695a95f5cf1a7ad50390405e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af219931ae59bfd17b6b02088d131fcc4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#af219931ae59bfd17b6b02088d131fcc4">ENCODER_COUNTS</a>&#160;&#160;&#160;14400</td></tr>
<tr class="separator:af219931ae59bfd17b6b02088d131fcc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7745485782511ac5adc139ebc479e39"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#aa7745485782511ac5adc139ebc479e39">CAN_ENABLE</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:aa7745485782511ac5adc139ebc479e39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae87967dc13f8df6b437c54e253fa5c69"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#ae87967dc13f8df6b437c54e253fa5c69">LED_EXT_BATT_LOW</a>&#160;&#160;&#160;28.0</td></tr>
<tr class="separator:ae87967dc13f8df6b437c54e253fa5c69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac11648a2d535467d40f9a605d5e00e76"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#ac11648a2d535467d40f9a605d5e00e76">LED_EXT_BATT_HIGH</a>&#160;&#160;&#160;33.0</td></tr>
<tr class="separator:ac11648a2d535467d40f9a605d5e00e76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4fe8b9051fab0ed857f4b7f1ccb1da8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#ae4fe8b9051fab0ed857f4b7f1ccb1da8">WS2811_ENABLE</a>&#160;&#160;&#160;0</td></tr>
<tr class="separator:ae4fe8b9051fab0ed857f4b7f1ccb1da8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36f085cf73db8d6538b36c1e5c62e186"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a36f085cf73db8d6538b36c1e5c62e186">WS2811_CLK_HZ</a>&#160;&#160;&#160;800000</td></tr>
<tr class="separator:a36f085cf73db8d6538b36c1e5c62e186"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a603b0328c04f0a8e93f19a141bee3bf4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a603b0328c04f0a8e93f19a141bee3bf4">WS2811_LED_NUM</a>&#160;&#160;&#160;14</td></tr>
<tr class="separator:a603b0328c04f0a8e93f19a141bee3bf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae59d53cd573f80957f17600765aa3620"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#ae59d53cd573f80957f17600765aa3620">WS2811_USE_CH2</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:ae59d53cd573f80957f17600765aa3620"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47369a74f8e864d5208f95cabdff76c0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a47369a74f8e864d5208f95cabdff76c0">SERVO_OUT_ENABLE</a>&#160;&#160;&#160;0</td></tr>
<tr class="separator:a47369a74f8e864d5208f95cabdff76c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0a63d93effeb2311cf7d049f92fe915"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#ac0a63d93effeb2311cf7d049f92fe915">SERVO_OUT_SIMPLE</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:ac0a63d93effeb2311cf7d049f92fe915"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aceae775b605ad97b91d11c48efa165b7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#aceae775b605ad97b91d11c48efa165b7">SERVO_OUT_PULSE_MIN_US</a>&#160;&#160;&#160;1000</td></tr>
<tr class="separator:aceae775b605ad97b91d11c48efa165b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab1ccffb4f17970e303970fcb96b2020"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#aab1ccffb4f17970e303970fcb96b2020">SERVO_OUT_PULSE_MAX_US</a>&#160;&#160;&#160;2000</td></tr>
<tr class="separator:aab1ccffb4f17970e303970fcb96b2020"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ce08a27ce10ba22bc9ef7b3be74d277"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a8ce08a27ce10ba22bc9ef7b3be74d277">SERVO_OUT_RATE_HZ</a>&#160;&#160;&#160;50</td></tr>
<tr class="separator:a8ce08a27ce10ba22bc9ef7b3be74d277"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab34d822f5a15a027a2517b31b4c3d57f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#ab34d822f5a15a027a2517b31b4c3d57f">VDIV_CORR</a>&#160;&#160;&#160;((<a class="el" href="../../d9/d16/hw__victor__r1a_8h.html#ac84130dd41edf99a5b09aa8068cb2f74">VIN_R2</a> / (<a class="el" href="../../d9/d16/hw__victor__r1a_8h.html#ac84130dd41edf99a5b09aa8068cb2f74">VIN_R2</a> + <a class="el" href="../../d9/d16/hw__victor__r1a_8h.html#a2ca9c5cf55454537eb2276679d87510f">VIN_R1</a>)) / (2.2 / (2.2 + 33.0)))</td></tr>
<tr class="separator:ab34d822f5a15a027a2517b31b4c3d57f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc5c29a5cd7ad49dd65b3d5543d81264"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#adc5c29a5cd7ad49dd65b3d5543d81264">V_REG</a>&#160;&#160;&#160;3.3</td></tr>
<tr class="separator:adc5c29a5cd7ad49dd65b3d5543d81264"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a1cd62f65c450ca92ee5da119bd1d98f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a1cd62f65c450ca92ee5da119bd1d98f9">conf_general_init</a> (void)</td></tr>
<tr class="separator:a1cd62f65c450ca92ee5da119bd1d98f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f2c09742f7b165a035ff679d127d95d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a6f2c09742f7b165a035ff679d127d95d">conf_general_read_app_configuration</a> (<a class="el" href="../../d6/dc1/structapp__configuration.html">app_configuration</a> *conf)</td></tr>
<tr class="separator:a6f2c09742f7b165a035ff679d127d95d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5893fed8217cf83667b06be8c30569a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#ae5893fed8217cf83667b06be8c30569a">conf_general_store_app_configuration</a> (<a class="el" href="../../d6/dc1/structapp__configuration.html">app_configuration</a> *conf)</td></tr>
<tr class="separator:ae5893fed8217cf83667b06be8c30569a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f7069529c71f0cb1f153ba243207702"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a2f7069529c71f0cb1f153ba243207702">conf_general_read_mc_configuration</a> (<a class="el" href="../../d5/d42/structmc__configuration.html">mc_configuration</a> *conf)</td></tr>
<tr class="separator:a2f7069529c71f0cb1f153ba243207702"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1afd3ac11a995e2cb5c2c4e9d7871eec"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#a1afd3ac11a995e2cb5c2c4e9d7871eec">conf_general_store_mc_configuration</a> (<a class="el" href="../../d5/d42/structmc__configuration.html">mc_configuration</a> *conf)</td></tr>
<tr class="separator:a1afd3ac11a995e2cb5c2c4e9d7871eec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af07b8623a9407976ed52024a1c615fa1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df4/conf__general_8h.html#af07b8623a9407976ed52024a1c615fa1">conf_general_detect_motor_param</a> (float current, float min_rpm, float low_duty, float *int_limit, float *bemf_coupling_k, int8_t *hall_table, int *hall_res)</td></tr>
<tr class="separator:af07b8623a9407976ed52024a1c615fa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="af8a66de8480015449b71c7e2a184245d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AUTO_PRINT_FAULTS&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa7745485782511ac5adc139ebc479e39"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CAN_ENABLE&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="af219931ae59bfd17b6b02088d131fcc4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ENCODER_COUNTS&#160;&#160;&#160;14400</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a42c15799695a95f5cf1a7ad50390405e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ENCODER_ENABLE&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a5a209f781c62e738bb2f3868604fbe77"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_VERSION_MAJOR&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae224d2fae5df95eef5b8b1638b714731"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_VERSION_MINOR&#160;&#160;&#160;12</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="afb5b082214e46b36710f13fb58f14536"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define HW_VERSION_46</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ac11648a2d535467d40f9a605d5e00e76"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LED_EXT_BATT_HIGH&#160;&#160;&#160;33.0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae87967dc13f8df6b437c54e253fa5c69"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LED_EXT_BATT_LOW&#160;&#160;&#160;28.0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a9b1e984078682e6796a6f01798bcff77"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MCCONF_OUTRUNNER2</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a47369a74f8e864d5208f95cabdff76c0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SERVO_OUT_ENABLE&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aab1ccffb4f17970e303970fcb96b2020"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SERVO_OUT_PULSE_MAX_US&#160;&#160;&#160;2000</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aceae775b605ad97b91d11c48efa165b7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SERVO_OUT_PULSE_MIN_US&#160;&#160;&#160;1000</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a8ce08a27ce10ba22bc9ef7b3be74d277"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SERVO_OUT_RATE_HZ&#160;&#160;&#160;50</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ac0a63d93effeb2311cf7d049f92fe915"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SERVO_OUT_SIMPLE&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a203e46be358e8b2504b821df08d80c76"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SYSTEM_CORE_CLOCK&#160;&#160;&#160;168000000</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="adc5c29a5cd7ad49dd65b3d5543d81264"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define V_REG&#160;&#160;&#160;3.3</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab34d822f5a15a027a2517b31b4c3d57f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define VDIV_CORR&#160;&#160;&#160;((<a class="el" href="../../d9/d16/hw__victor__r1a_8h.html#ac84130dd41edf99a5b09aa8068cb2f74">VIN_R2</a> / (<a class="el" href="../../d9/d16/hw__victor__r1a_8h.html#ac84130dd41edf99a5b09aa8068cb2f74">VIN_R2</a> + <a class="el" href="../../d9/d16/hw__victor__r1a_8h.html#a2ca9c5cf55454537eb2276679d87510f">VIN_R1</a>)) / (2.2 / (2.2 + 33.0)))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a36f085cf73db8d6538b36c1e5c62e186"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WS2811_CLK_HZ&#160;&#160;&#160;800000</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae4fe8b9051fab0ed857f4b7f1ccb1da8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WS2811_ENABLE&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a603b0328c04f0a8e93f19a141bee3bf4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WS2811_LED_NUM&#160;&#160;&#160;14</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae59d53cd573f80957f17600765aa3620"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WS2811_USE_CH2&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="af07b8623a9407976ed52024a1c615fa1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool conf_general_detect_motor_param </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>current</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>min_rpm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>low_duty</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>int_limit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>bemf_coupling_k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t *&#160;</td>
          <td class="paramname"><em>hall_table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>hall_res</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1cd62f65c450ca92ee5da119bd1d98f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void conf_general_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a6f2c09742f7b165a035ff679d127d95d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void conf_general_read_app_configuration </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d6/dc1/structapp__configuration.html">app_configuration</a> *&#160;</td>
          <td class="paramname"><em>conf</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read <a class="el" href="../../d6/dc1/structapp__configuration.html">app_configuration</a> from EEPROM. If this fails, default values will be used.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">conf</td><td>A pointer to a <a class="el" href="../../d6/dc1/structapp__configuration.html">app_configuration</a> struct to write the read configuration to. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2f7069529c71f0cb1f153ba243207702"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void conf_general_read_mc_configuration </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d5/d42/structmc__configuration.html">mc_configuration</a> *&#160;</td>
          <td class="paramname"><em>conf</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read <a class="el" href="../../d5/d42/structmc__configuration.html">mc_configuration</a> from EEPROM. If this fails, default values will be used.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">conf</td><td>A pointer to a <a class="el" href="../../d5/d42/structmc__configuration.html">mc_configuration</a> struct to write the read configuration to. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae5893fed8217cf83667b06be8c30569a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool conf_general_store_app_configuration </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d6/dc1/structapp__configuration.html">app_configuration</a> *&#160;</td>
          <td class="paramname"><em>conf</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write <a class="el" href="../../d6/dc1/structapp__configuration.html">app_configuration</a> to EEPROM.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">conf</td><td>A pointer to the configuration that should be stored. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1afd3ac11a995e2cb5c2c4e9d7871eec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool conf_general_store_mc_configuration </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d5/d42/structmc__configuration.html">mc_configuration</a> *&#160;</td>
          <td class="paramname"><em>conf</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write <a class="el" href="../../d5/d42/structmc__configuration.html">mc_configuration</a> to EEPROM.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">conf</td><td>A pointer to the configuration that should be stored. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://github.com/joshdellay" target="_new">Josh Dellay</a>